home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / nn.zip / CONFIG.H < prev    next >
C/C++ Source or Header  |  1989-12-31  |  7KB  |  251 lines

  1. /**************************** NN CONFIGURATION ***************************
  2.  *
  3.  *    Configuration file for nn
  4.  *
  5.  *    You must edit this file to reflect your local configuration
  6.  *    and environment.
  7.  *
  8.  *    Follow the instructions given in the comments.  See the files
  9.  *    INSTALLATION, NNTP, and PROBLEMS for more details.
  10.  */
  11.  
  12. #define    RELEASE     6
  13. #define    VERSION     3
  14.  
  15.  
  16. #include <stdio.h>
  17. #include <ctype.h>
  18.  
  19.  
  20. /*********************** NETWORK DEPENDENT DEFINITIONS **********************
  21.  *
  22.  *    Define NETWORK_DATABASE if you share the database through NFS on 
  23.  *    a network with different, non-compatible machines, e.g. SUNs and
  24.  *    VAXen, or SUN-3 and SUN-4, or if you are using different compilers
  25.  *    on the same architecture.
  26.  *
  27.  *    In a homogenous network, you can leave it undefined for higher
  28.  *    performance (no data conversion is needed).
  29.  */
  30.  
  31. /* #define NETWORK_DATABASE    /* */
  32.  
  33.  
  34. /********************************** NNTP *********************************
  35.  *
  36.  *     Define NNTP to enable nntp support.
  37.  *
  38.  *    With NNTP, the nnmaster still maintains a local database of 
  39.  *    all article headers for fast access (and because NNTP does not 
  40.  *    support nn - yet), while the articles are fetched from the
  41.  *    nntp server when they are read or saved.
  42.  *
  43.  *    You may still share this database through NFS locally (see the 
  44.  *    description of NETWORK_DATABASE above) if you don't want to
  45.  *    have separate nn databases on all your local systems.
  46.  *
  47.  *    Consult the file NNTP for further information on the use of NNTP.
  48.  */
  49.  
  50. /* #define NNTP            /* */
  51.  
  52. /* 
  53.  *     Define NNTP_SERVER to the name of a file containing the name of the
  54.  *     nntp server.
  55.  *
  56.  *     It is vital that both the nnmaster and all nn users on a machine 
  57.  *    uses the same nntp server, because the nn database is synchronized
  58.  *    with a specific news active file. 
  59.  *
  60.  *    If the file name does not start with a slash, it is relative to 
  61.  *    LIB_DIRECTORY defined below.
  62.  */
  63.  
  64. #define NNTP_SERVER    "/usr/lib/nntp_server"
  65.  
  66. /*
  67.  *    Define NNTP_POST if you want nn to reject attempts to post via
  68.  *    NNTP to a server, that disallows postings.
  69.  *
  70.  *    You should define this, if you use the NNTP based inews for
  71.  *    postings from NNTP clients.  If you use another mechanism, that
  72.  *    does not involve NNTP, you should leave it undefined.
  73.  */
  74.  
  75. #define NNTP_POST             /* */
  76.  
  77.  
  78. /***************** OPERATING SYSTEM DEPENDENT DEFINITIONS *******************
  79.  *
  80.  *      Include the appropriate s- file for your system below.
  81.  *
  82.  *    If a file does not exist for your system, you can use s-template.h
  83.  *    as a starting point for writing you own.
  84.  */
  85.  
  86. #include "s-usg3-1.h"
  87.  
  88.  
  89. /********************** MACHINE DEPENDENT DEFINITIONS **********************
  90.  *
  91.  *    Include the appropriate m- file for your system below.
  92.  *    
  93.  *    If a file does not exist for your system, you can use m-template.h
  94.  *    as a starting point for writing you own.
  95.  */
  96.  
  97. #include "m-i80386.h"
  98.  
  99.  
  100. /******************** SITE DEPENDENT DEFINITIONS **********************
  101.  *
  102.  *    Edit the following part to suit your local system setup
  103.  */
  104.  
  105. /*
  106.  *    Specify where programs and data should be placed
  107.  *
  108.  *    BIN_DIRECTORY   - the location of the user programs
  109.  *    LIB_DIRECTORY    - the location of auxiliary programs and files
  110.  *    DB_DIRECTORY    - the directory containing the nn database
  111.  *
  112.  *
  113.  * notice: if you share the news directory accross a network, you should
  114.  *       use something like /usr/spool/news/.nn for DB_DIRECTORY.
  115.  */
  116.  
  117. #define BIN_DIRECTORY    "/usr/lbin"
  118. #define LIB_DIRECTORY    "/usr/llib/nn"
  119. #define DB_DIRECTORY    "/usr/spool/nn"
  120.  
  121. /*
  122.  *     Specify directories for the user and system manuals
  123.  *
  124.  *     Adapt this to your local standards; the manuals will be named 
  125.  *         $(MAN_DIR)/program.$(MAN_SECTION)
  126.  */
  127.  
  128. #define USER_MAN_DIR     "/usr/catman/man/man1"
  129. #define USER_MAN_SECTION     "1"
  130.  
  131. #define SYS_MAN_DIR     "/usr/catman/man/man1"
  132. #define SYS_MAN_SECTION     "1m"
  133.  
  134. /*
  135.  *    Specify where to put temporary files.  Overriden by $TMPDIR.
  136.  *    Notice that nn does not create "large" temp files.
  137.  */
  138.  
  139. #define TMP_DIRECTORY    "/tmp"
  140.  
  141. /*
  142.  * Specify owner and group for files belonging to this package.
  143.  *
  144.  * Specifically, the nnmaster will run suid/sgid to this owner and group.
  145.  *
  146.  * The only requirements are that the ownership allows the nnmaster to
  147.  * READ the news related files and directories, and the ordinary users
  148.  * to read the database and execute the nn* programs.
  149.  *
  150.  * Normal choices are:  (news, news)  and   (your uid, your gid)
  151.  */
  152.  
  153. #define OWNER    "usenet"
  154. #define    GROUP    "news"
  155.  
  156. /*
  157.  *    Define STATISTICS if you want to keep a record of how much
  158.  *    time the users spend on news reading.
  159.  *
  160.  *    Sessions shorter than the specified number of minutes are not
  161.  *    recorded (don't clutter up the log file).
  162.  *
  163.  *    This is entered into the file $LIB_DIRECTORY/Log with code U
  164.  */
  165.  
  166. /* #define STATISTICS    5 /* minutes */
  167.  
  168. /*
  169.  *    Define HAVE_ROUTING if your mailer understands domain based
  170.  *    adresses (...@...) and performs the necessary rerouting (e.g. 
  171.  *    Sendmail or Smail).
  172.  *
  173.  *    Otherwise, nn will provide a simple routing facility using
  174.  *      routing information specified in the file LIB_DIRECTORY/routes.
  175.  */
  176.  
  177. /* #define HAVE_ROUTING            /* */
  178.  
  179. /*
  180.  *    If HAVE_ROUTING is NOT defined, nn needs to know the name of
  181.  *     your host.  To obtain the host name it will use either of the
  182.  *    'uname' or 'gethostname' system calls as specified in the s- file 
  183.  *    included above.
  184.  *
  185.  *    If neither 'uname' nor 'gethostname' is available, you must
  186.  *    define HOSTNAME to be the name of your host.  Otherwise, leave
  187.  *    it undefined (it will not be used anyway).
  188.  */
  189.  
  190. /* #define HOSTNAME    "myhost"    /* Not used if HAVE_ROUTING */
  191.  
  192. /*
  193.  *    Specify the location of your news programs and files
  194.  */
  195.  
  196. #define    INEWS_PATH    "/usr/lib/newsbin/inject/inews"
  197. #define NEWS_ACTIVE    "/usr/lib/news/active"
  198. #define NEWS_DIRECTORY    "/usr/spool/news"
  199.  
  200. /*
  201.  *    Specify a mailer that accepts a letter WITH a header IN THE TEXT.
  202.  *
  203.  *     A program named 'recmail' program is normally delivered with 
  204.  *    the news system.
  205.  *    On BSD systems you can also use "/usr/lib/sendmail -t".
  206.  */
  207.  
  208. #define REC_MAIL    "/usr/lib/newsbin/recmail"
  209.  
  210. /*
  211.  *    Define APPEND_SIGNATURE if you want nn to ask users to append
  212.  *    ~/.signature to mail messages (reply/forward/mail).  
  213.  *    
  214.  *    If the mailer defined in REC_MAIL automatically includes .signature
  215.  *    you should not define this (it will fool people to include it twice).
  216.  *
  217.  *    I think 'recmail' includes .signature, but 'sendmail -t' doesn't.
  218.  */
  219.  
  220. /* #define APPEND_SIGNATURE        /* */
  221.  
  222. /*
  223.  *    Default folder directory
  224.  */
  225.  
  226. #define FOLDER_DIRECTORY    "~/News"
  227.  
  228. /*
  229.  *    Max length of authors name (in "edited" format).
  230.  *    Also size of "Name" field on the article menus.
  231.  *    You may want to increase this if your terminals are wider than
  232.  *    80 columns.
  233.  */
  234.  
  235. #define NAME_LENGTH         16
  236.  
  237. /*
  238.  *     Define RESIZING to make nn understand dynamic window-resizing.
  239.  *     (It uses the TIOCGWINSZ ioctl found on most 4.3BSD systems)
  240.  */
  241.  
  242. /* #define RESIZING        /* */
  243.  
  244.  
  245. /************************ CONFIGURATION COMPLETED ************************
  246.  *
  247.  *    The rest of this file will not need any changes.
  248.  */
  249.  
  250. #include "global.h"
  251.